home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / tpapi.exe / DOCS / OLDDOCS.LZH / NWWRKSTN.DOC < prev   
Text File  |  1993-01-08  |  8KB  |  202 lines

  1.                              WORKSTATION SERVICES
  2.                              ====================
  3.  
  4. --------------------------------------------------------------------------------
  5.  
  6.   DeleteFakeRoot (DriveLetter : CHAR)
  7.  
  8.     This procedure remove the fake root part of a mapped drive.
  9.     ie.  The drive still remains mapped but without a faked root.
  10.  
  11.     DriveLetter (Input)               : drive of map root to remove
  12.                                         if DriveLetter is * then work on
  13.                                         default drive.
  14.  
  15. --------------------------------------------------------------------------------
  16.  
  17.   EndOfJob (Process : WORD)
  18.  
  19.     This function generates an EndOfJob.
  20.  
  21.     Process (Input)                   : 00   = current process only.
  22.                                         FFFF = all processes.
  23.  
  24. --------------------------------------------------------------------------------
  25.  
  26.   GetConnectionID (FileServerName : ObjectNameType;
  27.                    VAR ConnectionID : WORD) : WORD;
  28.  
  29.     This function returns the connectionID of a file server.
  30.  
  31.     FileServerName (Input)            : name of the file server for which the
  32.                                         connectionID is to be returned.
  33.  
  34.     ConnectionID (Output)             : the connectionID of the specified
  35.                                         server.
  36.  
  37. --------------------------------------------------------------------------------
  38.  
  39.   GetDefaultConnectionID : WORD;
  40.  
  41.     Returns the connectionID of the file server to which request packets are
  42.     being sent.
  43.  
  44. --------------------------------------------------------------------------------
  45.  
  46.   GetFileServerName (ConnectionID : WORD; VAR FileServerName : ObjectNameType);
  47.  
  48.     Returns the file server name of a connectionID.
  49.  
  50.     ConnectionID (Input)              : connectionID for which a file server
  51.                                         name is needed.
  52.  
  53.     FileServerName (Output)           : name of the file server.
  54.  
  55. --------------------------------------------------------------------------------
  56.  
  57.   GetNetwareShellVersion (VAR MajorVersion, MinorVersion,
  58.                           RevisionLevel, ShellType : BYTE) : WORD;
  59.  
  60.     Returns information about the workstation shell.
  61.  
  62.     MajorVersion (Output)             : Netware shell major version.
  63.  
  64.     MinorVersion (Output)             : Netware shell minor version.
  65.  
  66.     RevisionLevel (Output)            : Netware shell revision level.
  67.  
  68.     ShellType (Output)                : type of the shell loaded.
  69.                                         (0 = conventional memory shell)
  70.                                         (1 = expanded memory shell)
  71.                                         (2 = extended memory shell)
  72.  
  73. --------------------------------------------------------------------------------
  74.  
  75.   GetNumberOfLocalDrives : WORD;
  76.  
  77.     Returns the number of local drives at the workstation.
  78.  
  79. --------------------------------------------------------------------------------
  80.  
  81.   GetPreferredConnectionID : WORD;
  82.  
  83.     Returns the connectionID of the preferred server.  0 if there is not one
  84.     set.
  85.  
  86. --------------------------------------------------------------------------------
  87.  
  88.   GetPrimaryConnectionID : WORD;
  89.  
  90.     Returns the connectionID of the primary server.  0 if there is not one
  91.     set.
  92.  
  93. --------------------------------------------------------------------------------
  94.  
  95.   GetTaskMode (var TaskMode : BYTE) : WORD;
  96.  
  97.     Returns the current task cleranup mode setting.
  98.  
  99.     TaskMode (Output)                 : receives the current task mode.
  100.                                         0 - 3 = reserved.
  101.                                         4     = no task cleanup done.
  102.  
  103. --------------------------------------------------------------------------------
  104.  
  105.   GetWorkstationEnvironment (VAR OperatingSystemType, OperatingSystemVersion,
  106.                              HardwareType, ShortHardwareType : String40Type);
  107.  
  108.     This function returns information about the workstation's OS and hardware
  109.     environment.
  110.  
  111.     OperatingSystemType (Output)      : receives the OS type (eg. MS-DOS)
  112.  
  113.     OperatingSystemVersion (Output)   : receives the OS version (eg. v3.30)
  114.  
  115.     HardwareType (Output)             : receives the WS hardware (eg. IBM_PC)
  116.  
  117.     ShortHardwareType (Output)        : receives the shortened WS hardware
  118.                                         (eg. IBM)
  119.  
  120. --------------------------------------------------------------------------------
  121.  
  122.   IsConnectionIDInUse (ConnectionID : WORD) : WORD;
  123.  
  124.     This function verifies whether a connectionID is currently in use.
  125.  
  126.     ConnectionID (Input)              : connectionID to verify if in use.
  127.  
  128. --------------------------------------------------------------------------------
  129.  
  130.   MapFakeRoot (DriveLetter : CHAR; DirectoryPath : PATHNAMETYPE) : WORD;
  131.  
  132.     This function maps a drive with a fake root.
  133.  
  134.     DriveLetter (Input)               : drive to be mapped.
  135.                                         if DriveLetter is * then work on
  136.                                         default drive.
  137.  
  138.     DirectoryPath (Input)             : path to map in format
  139.                                         [server/][volume:][path]
  140.  
  141. --------------------------------------------------------------------------------
  142.  
  143.  
  144.   SetEndOfJobStatus (EndOfJobFlag : BYTE) : BYTE;
  145.  
  146.     This function enables or disables the EndOfJob generated by the shell when
  147.     control returns to the root level COMMAND.COM.
  148.  
  149.     EndOfJobFlag (Input)              : 0 = disabled.
  150.                                         1 = enabled.
  151.  
  152. --------------------------------------------------------------------------------
  153.  
  154.   SetNetwareErrorMode (ErrorMode : BYTE) : BYTE;
  155.  
  156.     Sets the network error handling mode for the workstation.
  157.  
  158.     ErrorMode (Input)                 : 00h= Netware critical I/O errors for
  159.                                              user intervention (DEFAULT)
  160.                                         01h= All extended Netware file I/O
  161.                                              errors returned.
  162.                                         02h= Only extended Netware critical file
  163.                                              I/O errors returned.
  164.  
  165. --------------------------------------------------------------------------------
  166.  
  167.   SetPreferredConnectionID (ConnectionID : WORD);
  168.  
  169.     Sets the preferred file server.
  170.  
  171.     ConnectionID (Input)              : connectionID of the preferred file
  172.                                         server.
  173.  
  174. --------------------------------------------------------------------------------
  175.  
  176.   SetPrimaryConnectionID (ConnectionID : WORD);
  177.  
  178.     Sets the primary file server.
  179.  
  180.     ConnectionID (Input)              : connectionID of the primary file server.
  181.  
  182. --------------------------------------------------------------------------------
  183.  
  184.   SetTaskMode (TaskMode : BYTE);
  185.  
  186.     Sets the task cleanup mode of the workstation.
  187.  
  188.     TaskMode (Input)                  : 0 - 3 = reserved.
  189.                                         4     = no task cleanup done.
  190.  
  191. --------------------------------------------------------------------------------
  192.  
  193.   SetShowDots (ShowDots : BOOLEAN) : BOOLEAN;
  194.  
  195.     Sets whether '.' and '..' can be seen in directory listings.
  196.     Returns previous setting.
  197.  
  198.     ShowDots (Input)                  : true  = no dots listed.
  199.                                         false = dots will be listed.
  200.  
  201. --------------------------------------------------------------------------------
  202.